home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C++ / Applications / SeeMovieRun 2.0 / Source / CEBCollaborator.cp < prev    next >
Encoding:
Text File  |  1995-08-02  |  1.8 KB  |  59 lines  |  [TEXT/KAHL]

  1. /******************************************************************************
  2.  CEBCollaborator.c
  3.  
  4.         Class that represents objects that need access to the global
  5.         event record. An EBCollaborator maintains a list of provider
  6.         objects and a list of dependent objects. When an EBCollaborator
  7.         changes, it sends itself the BroadcastChange message. Each
  8.         dependent then receives the ProviderChanged message which packages
  9.         an EventRecord along with it.
  10.         
  11.         If any object handles the event, change the event.what to a nullEvent
  12.         so it is effectively ignored by the application.
  13.         
  14.     SUPERCLASS = CCollaborator 
  15.     
  16.     Copyright © 1992 Joe Zobkiw. All rights reserved.
  17.     Portions Copyright © 1990 Symantec Corporation.  All rights reserved.    
  18.  
  19.     Copyright © 1995 Gregory Bonk. All rights reserved.
  20.         Changes upgrade to TPM 7.0.7
  21.  ******************************************************************************/
  22.  
  23. #include "CEBCollaborator.h"
  24.  
  25. TCL_DEFINE_CLASS_M1(CEBCollaborator, CCollaborator);
  26.  
  27. /**** C O N S T R U C T I O N / D E S T R U C T I O N   M E T H O D S ****/
  28.  
  29. CEBCollaborator::CEBCollaborator(void) : CCollaborator() 
  30. {
  31.     TCL_END_CONSTRUCTOR
  32. }
  33.  
  34. CEBCollaborator::~CEBCollaborator(void)
  35. {
  36.     TCL_START_DESTRUCTOR
  37. }
  38.  
  39.  
  40. /******************************************************************************
  41.  IEBCollaborator
  42.  
  43.      Initialize an EBCollaborator
  44. ******************************************************************************/
  45. void CEBCollaborator::IEBCollaborator(void)
  46. {
  47.     inherited::ICollaborator();
  48. }
  49.  
  50. /******************************************************************************
  51.  BroadcastEvent {Unique to this class}
  52.  
  53.      Broadcast an event
  54. ******************************************************************************/
  55. void     CEBCollaborator::BroadcastEvent(EventRecord *macEvent)
  56. {
  57.     BroadcastChange(kEventRecordReason, (Ptr)macEvent);
  58. }
  59.